﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sundry.Model
{
    /// <summary>
    /// 商品类别
    /// </summary>
    public class Category
    {
        [Key]
        public int CategoryId { get; set; }
        /// <summary>
        /// 父类ID
        /// </summary>
        public int ParentId { get; set; }
        /// <summary>
        /// 分类等级
        /// </summary>
        public int Level { get; set; }
        /// <summary>
        /// 分类名称
        /// </summary>
        [StringLength(100)]
        public string Name { get; set; }
        /// <summary>
        /// 分类图片
        /// </summary>
        [StringLength(130)]
        public string CategoryImg { get; set; }
        /// <summary>
        /// 分类简介
        /// </summary>
        [StringLength(100)]
        public string Intro { get; set; }
        /// <summary>
        /// 排序数字
        /// </summary>
        public int OrderNum { get; set; }
        /// <summary>
        /// 是否显示
        /// </summary>
        public int IsShow { get; set; }
    }
}
